home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
lib
/
tcl
/
demos
/
hello
< prev
next >
Wrap
Text File
|
1992-04-29
|
423b
|
13 lines
#!/usr/local/wish -f
# Simple Tk script to create a button that prints "Hello, world".
# Click on the button to terminate the program.
#
# The first line below creates the button, and the second line
# arranges for packer to manage the button's geometry, centering
# it in the application's main window.
button .hello -text "Hello, world" -command {
puts stdout "Hello, world"; destroy .
}
pack append . .hello {top}